package com.cw.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cw.entity.ErApplyItemOut;
import com.cw.mapper.ErApplyItemOutMapper;
import com.cw.service.IErApplyItemOutService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 检查电子开单-申请项目明细-门诊病人-胡思聪20110519 服务实现类
 * </p>
 *
 * @author ly
 * @since 2021-08-20
 */
@Service
public class ErApplyItemOutServiceImpl extends ServiceImpl<ErApplyItemOutMapper, ErApplyItemOut> implements IErApplyItemOutService {

    /**
     * 通过处方号查询检查报告集合
     * @param brcfh 处方号
     * @return java.util.List<com.cw.entity.ErApplyItemOut>
     * @author ly
     * @since 2021-08-20 09:54
     */
    @Override
    public List<ErApplyItemOut> getErApplyItemOutBy(String brcfh) {
        LambdaQueryWrapper<ErApplyItemOut> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(ErApplyItemOut::getBrcfh, brcfh);
        return list(lambdaQueryWrapper);
    }
}
